package cn.stylefeng.guns.modular.business.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 实例类
 *
 * @author zhangyaowen
 * @date 2021/09/13 15:11
 */
@ApiModel
@TableName("sub_resource_info")
@Data
@EqualsAndHashCode(callSuper = true)
public class ResourceInfo extends BaseEntity {

    /**
     * 资讯id
     */
//    @ApiModelProperty("资讯id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 资讯名
     */
    @ApiModelProperty("资讯名")
    @TableField("resource_name")
    private String resourceName;

    /**
     * 资讯内容
     */
    @ApiModelProperty("资讯内容")
    @TableField("resource_content")
    private String resourceContent;

    /**
     * 资讯来源
     */
    @ApiModelProperty("资讯来源")
    @TableField("resource_from")
    private String resourceFrom;

    /**
     * 资讯发布时间
     */
    @ApiModelProperty("资讯发布时间")
    @TableField("resource_time")
    private String resourceTime;

    /**
     * 资讯文件
     */
    @ApiModelProperty("资讯文件")
    @TableField("resource_file")
    private String resourceFile;

    /**
     * 资讯类型
     */
    @ApiModelProperty("资讯类型")
    @TableField("resource_type")
    private Long resourceType;

}